const initState=99
export default function countReducer(preState=initState, action) {
    const {type, data} = action
    console.log(type, data)
    switch (type) {
        case 'increment':
            return preState+data
        default:
            return preState

    }
}